/** 表单 */
export const formData = {
  name: '',
  phone: '',
  daterange: ''
}
export const formConfig = [
  {
    type: 'input',
    prop: 'name',
    label: '姓名',
    span: 24,
    clearable: true
  },
  {
    type: 'input',
    prop: 'phone',
    label: '手机号',
    span: 24,
    clearable: true,
    formatter: (value) => value.replace(/[^\d]/g, '')
  }
]
export const formRules = {
  name: [{ required: true, message: '请输入姓名', trigger: 'blur' }],
  phone: [{ required: true, message: '请输入手机号', trigger: 'blur' }],
  select: [{ required: true, message: '请选择部门', trigger: 'change' }],
  username: [{ required: true, message: '请输入用户名', trigger: 'blur' }]
}
